package by.gamedev.site.client.app;

import by.gamedev.site.client.app.ioc.DesktopInjectorWrapper;
import by.gamedev.site.client.app.ioc.InjectorWrapper;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

/**
 * Application for browsing entities.
 */
public class GameDev implements EntryPoint {
    private final InjectorWrapper injectorWrapper = GWT.create(DesktopInjectorWrapper.class);

    @Override
    public void onModuleLoad() {
        /* Get and run platform specific app */
        getInjectorWrapper().getInjector().getGameDevApp().run();
    }

    public InjectorWrapper getInjectorWrapper() {
        return injectorWrapper;
    }
}
